@extends('layout/default')

@section('content')
<div class="container ">
    <div clas="row ">
        <form method="post" action="{{URL::to('spaceShare/join')}}">
            <input type="hidden" name="_token" value="{{csrf_token()}}"/>
            <input type="hidden" name="SSASID" value="{{$data->SSID}}"/>
            <input type="hidden" name="SSACutomerID" value="{{Session::get('customer_id')}}"/>
            <div class="col-xs-12">
                标题：{{$data->SSTitle}}
            </div>
            <div class="col-xs-12">
                场地：{{$data->SSSpaceID}}
            </div>
            <div class="col-xs-12">
                付款：
                <select disabled="">
                    <option value="1"
                    @if($data->SSPayType==1) selected="" @endif>我请客</option>
                    <option value="2"
                    @if($data->SSPayType==2) selected="" @endif>求请客</option>
                    <option value="3"
                    @if($data->SSPayType==3) selected="" @endif>AA付款</option>
                </select>
            </div>
            <div class="col-xs-12">
                时间：{{$data->SSBeginAT}}
            </div>
            <div class="col-xs-12">
                人数：{{$data->SSLimit}}
            </div>
            <div class="col-xs-12" style="margin-top: 1em">
                留言：{{$data->SSMessage}}
            </div>
            <div class="col-xs-12">
                联系人：{{$data->CName}}
            </div>
            <div class="col-xs-12">
                联系电话：{{$data->CMobile}}
            </div>
            <div class="col-xs-12">
                留言：<textarea style="width: 100%;height: 100px;" name="SSAMessage"></textarea>
            </div>
            @if($canJoin==0)
            <div class="col-xs-12">
                <button type="submit" class="btn btn-primary">申请加入</button>
            </div>
            @else
            <div class="col-xs-12" style="margin-top: 1em">
                <button type="buttom" class="btn btn-primary col-xs-12" style="height: 3em;margin-top: 3em" disabled>您已经申请加入</button>
            </div>
            @endif
        </form>
    </div>

</div>
@endsection
